package com.dd.ms.provider.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dd.ms.provider.config.feign.FeignConfig;
import com.dd.ms.provider.config.feign.fallback.DataObjectFeignFallbackFactory;
import com.dd.ms.provider.pojo.DataObjectBO;
import com.dd.ms.provider.pojo.req.DataObjectPageQueryReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/6/27 13:37
 * @Description 类功能作用说明
 */
@FeignClient(
        name = "dd-ms-provider",
        configuration = FeignConfig.class,
        fallbackFactory = DataObjectFeignFallbackFactory.class // 降级工厂
)
public interface DataObjectFeignClient {
    @PostMapping("/data-object/page")
    Page<DataObjectBO> pageFeign(@RequestBody DataObjectPageQueryReq req);
}
